<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>免挂价格配置</title>
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" />
    <link rel="stylesheet" href="<?=adminassets?>assets/css/pay_vip.css" />
    
</head>
<body class="pear-container">
    <div class="price-container">
        <div class="config-card animate-slideInUp">
            <div class="config-card-header">
                <i class="layui-icon layui-icon-set"></i>
                免挂会员价格配置
            </div>
            <div class="config-card-body">
                <form class="layui-form" onsubmit="return saveSetting(this)" method="post" role="form">
                    <!-- 支付通道价格配置 -->
                    <div class="config-section">
                        <div class="section-title">支付通道价格配置</div>
                        <div class="layui-row layui-col-space20">
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">支付宝月费</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="alipay_free_vip_money" lay-verify="required|number"
                                            value="<?php echo $this->conf['alipay_free_vip_money']; ?>" class="layui-input" 
                                            placeholder="请输入支付宝免挂月费">
                                        <div class="input-help">
                                            <i class="layui-icon layui-icon-about"></i>
                                            支付宝免挂服务每月收费金额
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">QQ钱包月费</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="qqpay_free_vip_money" lay-verify="required|number"
                                            value="<?php echo $this->conf['qqpay_free_vip_money']; ?>" class="layui-input"
                                            placeholder="请输入QQ钱包免挂月费">
                                        <div class="input-help">
                                            <i class="layui-icon layui-icon-about"></i>
                                            QQ钱包免挂服务每月收费金额
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">微信月费</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="wxpay_free_vip_money" lay-verify="required|number"
                                            value="<?php echo $this->conf['wxpay_free_vip_money']; ?>" class="layui-input"
                                            placeholder="请输入微信免挂月费">
                                        <div class="input-help">
                                            <i class="layui-icon layui-icon-about"></i>
                                            微信免挂服务每月收费金额
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 系统配置 -->
                    <div class="config-section">
                        <div class="section-title">系统配置</div>
                        <div class="layui-row layui-col-space20">
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">二维码数量限制</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="qr_nums" lay-verify="number"
                                            value="<?php echo $this->conf['qr_nums']; ?>" class="layui-input"
                                            placeholder="请输入允许上架的二维码数量">
                                        <div class="input-help">
                                            <i class="layui-icon layui-icon-tips"></i>
                                            不填写则使用用户配置的专属二维码数量限制
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">额度充值比例</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="ed_money" lay-verify="required|number"
                                            value="<?php echo $this->conf['ed_money']; ?>" class="layui-input"
                                            placeholder="请输入1元可兑换的额度数">
                                        <div class="input-help">
                                            <i class="layui-icon layui-icon-chart"></i>
                                            示例：设置为30时，表示费率约3%（1元=30额度，交易1000元可得30元）
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">收款商户ID</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="zero_pid" lay-verify="required"
                                            value="<?php echo $this->conf['zero_pid']; ?>" class="layui-input"
                                            placeholder="请输入会员开通收款商户ID">
                                        <div class="input-help">
                                            <i class="layui-icon layui-icon-username"></i>
                                            用于会员开通时的收款账户
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 提交按钮 -->
                    <div class="form-actions">
                        <button type="submit" class="pear-btn pear-btn-primary submit-btn">
                            <i class="layui-icon layui-icon-ok"></i>
                            保存配置
                        </button>
                        <button type="reset" class="pear-btn submit-btn">
                            <i class="layui-icon layui-icon-refresh"></i>
                            重置
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script src="<?=adminassets?>assets/pear/component/layui/layui.js"></script>
    <script src="<?=adminassets?>assets/pear/component/pear/pear.js"></script>
    <script src="<?=adminassets?>assets/js/core_js/set.js"></script>
</body>
</html>